From: kfraser@localhost.localdomain Date: Wed, 18 Oct 2006 18:23:32 +0000 (+0100) Subject: [NET] front: Fix "rmmod xennet" crash in dom0. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15589^2~34 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=55235ec5594a3ce200443fdad8a97313ebcb6856;p=xen.git [NET] front: Fix "rmmod xennet" crash in dom0. Signed-off-by: Jim Dykman --- diff --git a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c index b75c986960..26e0610d15 100644 --- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c +++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c @@ -2129,6 +2129,9 @@ module_init(netif_init); static void __exit netif_exit(void) { + if (is_initial_xendomain()) + return; + unregister_inetaddr_notifier(¬ifier_inetdev); return xenbus_unregister_driver(&netfront);